package com.musemun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.musemun.pojo.RolePermission;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


import java.sql.Wrapper;
import java.util.List;

public interface RolePermissionMapper extends BaseMapper<RolePermission> {

    @Select("select role.role,permission.url from role,rp,permission where role.rid=rp.rid and rp.pId=permission.pId")
    List<RolePermission> getAllRolePermission();
}
